All Questions
5 questions
3votes
3answers
183views
SED command to delete a forward slash "/" between 2 tags
I am using Linux, and I want to use sed to delete a forward slash (/) between 2 tags. From this: input.xml... <file>/text</file> <file>/text2</file> <file>/text</file&...
4votes
4answers
1kviews
Can I extract complete dates from file with grep command?
I need help using grep to extract a zoned date time from a file on a Linux system. Source file is a XML with the data below: <item start="20231010073000 +0100" stop="20231010100000 +...
0votes
4answers
6kviews
How to extract a portion of an XML tag value in a Bash script
I have a XML file like this (A.xml) : <?xml version="1.0"?> <RunParameters xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1vote
2answers
156views
awk: change line to itself parsed with command. Multiline text
I'm trying to answer a question. It involves using the command recode. A specific line has to be parsed by the command leaving the rest untouched. The file is an xml file. Example: <ITEM_ID>...
3votes
2answers
4kviews
Use xmlstarlet to remove an entire element that matches an attribute value?
My question is similar to sed - Delete XML node containing certain element - Unix & Linux Stack Exchange. Trying to implement the suggestions there has kept me busy all day, but I haven't managed ...